<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.thymeleaf.org/thymeleaf-extras-shiro">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>主页</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <link rel="shortcut icon" href="favicon.ico">
    <link th:href="@{static/css/bootstrap.min.css}" href="../static/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link th:href="@{static/css/font-awesome.css}"href="../static/css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link th:href="@{static/css/plugins/iCheck/custom.css}"href="../static/css/plugins/iCheck/custom.css" rel="stylesheet">
    <link th:href="@{static/css/animate.css}"href="../static/css/animate.css" rel="stylesheet">
    <link th:href="@{static/css/style.css}"href="../static/css/style.css?v=4.1.0" rel="stylesheet">
</head>
<div class="container-fluid">
    <div class="row-fluid">
        <div class="span12">
            <h1 >
                <b shiro:hasPermission="0" th:text="'欢迎用户'+${session.loginUser.getUsername()}+'回来'">欢迎使用设备管理系统</b>
                <b shiro:hasPermission="1" th:text="'欢迎管理员'+${session.loginUser.getUsername()}+'回来'">欢迎使用设备管理系统</b>
            </h1>
            <div class="col-sm-14">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>公告栏</h5>
                    </div>
                    <div class="ibox-content">
                        <div align="left"><strong><p th:text="${anno.getTitle()}" style="font-size: 20px">title</p></strong></div>
                        <textarea  th:text="${anno.getContent()}" readonly class="form-control" rows="10" value="dddddd"></textarea>

                        <div align="left"><p th:text="'发布人:'+${anno.getWriter() }" style="font-size: 20px">123</p></div>
                        <div align="right"><p th:text="'发布日期:'+${anno.getPublishTime() }" style="font-size: 20px">2012.02.02</p></div>

                    </div>

                </div>
            </div>
            <!-- 天气预报 -->
            <div class="col-sm-14">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>天气预报</h5>
                    </div>
                    <div class="ibox-content">
                        <div id="weather-view-he"></div>
                    </div>
                </div>
            </div>

        </div>
    </div>
</div>
<!---->

<script th:src="@{static/js/jquery.min.js}" ></script>
<script th:src="@{static/js/bootstrap.min.js}" ></script>
<!--天气预报-->
<script>
    WIDGET = {ID: 'CBNtPvziMK'};
</script>
<script type="text/javascript" src="https://apip.weatherdt.com/view/static/js/r.js?v=1111"></script>


<!-- 全局js -->
<script th:src="@{static/js/jquery.min.js}" src="../static/js/jquery.min.js?v=2.1.4"></script>
<script th:src="@{static/js/bootstrap.min.js}" src="../static/js/bootstrap.min.js?v=3.3.6"></script>


<!-- Peity -->
<script th:src="@{static/js/plugins/peity/jquery.peity.min.js}" src="../static/js/plugins/peity/jquery.peity.min.js"></script>

<!-- 自定义js -->
<script th:src="@{static/js/content.js}" src="../static/js/content.js?v=1.0.0"></script>


<!-- iCheck -->
<script th:src="@{static/js/plugins/iCheck/icheck.min.js}" src="../static/js/plugins/iCheck/icheck.min.js"></script>

<script th:src="@{static/script/base.js}" src="../static/script/base.js"></script>

<script th:src="@{static/script/tips.js}" src="../static/script/tips.js"></script>

<script th:src="@{static/script/anno.js}" src="../static/script/anno.js"></script>

<script th:src="@{static/js/plugins/sweetalert/sweetalert.min.js}" src="../static/js/plugins/sweetalert/sweetalert.min.js"></script>
</body>

</html>
